<template>
  <div id="app">
    <!-- <img src="./assets/logo.png"> -->
    <router-view />
  </div>
</template>

<script>
import { getChildrenPath } from "@/router/indexUtil";
export default {
  name: "App",
  created() {
    //用户登录后，刷新页面时，验证userId，重新绑定动态路由
    var userId = localStorage.getItem("userId");
    if (userId != null) {
      getChildrenPath(this.$apiUrl);
    }
  },
};
</script>

<style>
#app {
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  /* margin-top: 60px; */
}
</style>
